<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Request {

	var $CI;

	function  __construct()
	{
		$this->CI =& get_instance();
	}

	public function is_ajax()
	{
		return ($this->CI->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') ? TRUE : FALSE;
	}
}
